package com.cloudfun.campusshare.service.handler;

import com.cloudfun.campusshare.common.model.dto.kjt.KjtNotifyBaseDTO;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Huqin on 2020/8/17
 */
public interface KjtNotifyHandler<T extends KjtNotifyBaseDTO> {

    /**
     * 要处理的通知类型
     *
     * @return
     */
    String notifyType();

    /**
     * 数据类型
     *
     * @return
     */
    Class<T> notifyMessageType();

    /**
     * 处理
     *
     * @param notifyMsg
     * @return
     */
    boolean handle(KjtNotifyBaseDTO notifyMsg);
}
